package de.tum.in.eist.poll.shared;

import java.io.Serializable;

@SuppressWarnings("serial")
/**
 * Representation of a university course.
 * 
 */
public class Course implements Serializable {

	/** The course's identification number as stored in the database's courses table.*/
	private int courseID;
	/** The course's title as stored in the database's courses table.*/
	private String courseTitle;
	/** The courses code as stored in the database's courses table. Ex.: IN0001 or Econ-101*/
	private String courseCode = "";
	/** The lecturer's identification number as stored in the database's users table.*/
	private int lecturerID;
	
	/**
	 * Default constructor.
	 * 
	 * @deprecated Empty Course objects should be avoided.
	 */
	public Course() {
		courseID = 0;
		courseTitle = "";
		lecturerID = -1;
	}
	
	/**
	 * Basic constructor.
	 */
	public Course(String courseTitle, int lecturerID) {
		this.courseTitle = courseTitle;
		this.lecturerID = lecturerID;
	}
	
	/**
	 * Full constructor.
	 */
	public Course(String courseTitle, int lecturerID, String courseCode) {
		this.courseTitle = courseTitle;
		this.lecturerID = lecturerID;
		this.courseCode = courseCode;
	}

	/**@return {@link #courseID}*/
	public int getCourseID() {
		return courseID;
	}
	
	/**@return {@link #courseTitle}*/
	public String getCourseTitle() {
		return courseTitle;
	}
	
	/**@return {@link #courseCode}*/
	public String getCourseCode() {
		return courseCode;
	}

	/**@return {@link #lecturerID}*/
	public int getLecturerID() {
		return lecturerID;
	}
	
}
